export class AppServiceData {
    public static get getAllApp() {
        return {
            input: {
                data: {
                    testData: 'testData',
                },
            },
            output: {
                config: {
                    headers: {Authorization: ''},
                    onUploadProgress: undefined,
                    params: {testData: 'testData'},
                    timeout: 60,
                },
                url: '/apps/search',
            },
        };
    }

    public static get getAllAccountApp() {
        return {
            input: {
                accountId: 'accountId',
                data: {
                    testData: 'testData',
                },
            },
            output: {
                config: {
                    headers: {Authorization: ''},
                    onUploadProgress: undefined,
                    params: {testData: 'testData'},
                    timeout: 60,
                },
                url: '/accounts/accountId/apps',
            },
        };
    }

    public static get installAppToAccount() {
        return {
            input: {
                accountId: 'accountId',
                appId: 'appId',
                data: {
                    testData: 'testData',
                },
            },
            output: {
                config: {headers: {Authorization: ''}, onUploadProgress: undefined, params: {}, timeout: 60},
                data: {testData: 'testData'},
                url: '/accounts/accountId/apps/appId',
            },
        };
    }

    public static get unloadingAccountApp() {
        return {
            input: {
                accountId: 'accountId',
                appId: 'appId',
            },
            output: {
                config: {
                    data: undefined,
                    headers: {Authorization: ''},
                    onUploadProgress: undefined,
                    params: {},
                    timeout: 60,
                },
                url: '/accounts/accountId/apps/appId',
            },
        };
    }

    public static get createApp() {
        return {
            input: {
                appId: 'appId',
                data: {
                    testData: 'testData',
                },
            },
            output: {
                config: {headers: {Authorization: ''}, onUploadProgress: undefined, params: {}, timeout: 60},
                data: {testData: 'testData'},
                url: '/apps/appId',
            },
        };
    }
    public static get getAppByAppId() {
        return {
            input: {
                appId: 'appId',
            },
            output: {
                config: {headers: {Authorization: ''}, onUploadProgress: undefined, params: {}, timeout: 60},
                url: '/apps/appId',
            },
        };
    }

    public static get updateAppState() {
        return {
            input: {
                appId: 'appId',
                data: {
                    testData: 'testData',
                },
            },
            output: {
                config: {headers: {Authorization: ''}, onUploadProgress: undefined, params: {}, timeout: 60},
                data: {testData: 'testData'},
                url: '/apps/appId/state',
            },
        };
    }

    public static get deleteApp() {
        return {
            input: {
                appId: 'appId',
            },
            output: {
                config: {
                    data: undefined,
                    headers: {Authorization: ''},
                    onUploadProgress: undefined,
                    params: {},
                    timeout: 60,
                },
                url: '/apps/appId',
            },
        };
    }
}
